package com.dangdang.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 商品实体类
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-18
 */

public class Product implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 1.商品ID */
	private Integer id;

	/** 2.商品名称 */
	private String productName;

	/** 3.商品描述 */
	private String description;

	/** 4.市场(固定)价格 */
	private double fixedPrice;

	/** 5.当当价格 */
	private double dangPrice;

	/** 6.关键字,供搜索使用 */
	private String keywords;

	/** 7.是否被删除,0:存在,1:被删除 */
	private int hasDeleted = 0;

	/** 8.商品图片 */
	private String productPic;

	/** 9.该商品所属分类 */
	private Set<Category> category = new HashSet<Category>(0);

	public void setCategory(Set<Category> category) {
		this.category = category;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public double getFixedPrice() {
		return this.fixedPrice;
	}

	public void setFixedPrice(double fixedPrice) {
		this.fixedPrice = fixedPrice;
	}

	public double getDangPrice() {
		return this.dangPrice;
	}

	public void setDangPrice(double dangPrice) {
		this.dangPrice = dangPrice;
	}

	public String getKeywords() {
		return this.keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public int getHasDeleted() {
		return this.hasDeleted;
	}

	public void setHasDeleted(int hasDeleted) {
		this.hasDeleted = hasDeleted;
	}

	public String getProductPic() {
		return this.productPic;
	}

	public void setProductPic(String productPic) {
		this.productPic = productPic;
	}

	public Set<Category> getCategory() {
		return this.category;
	}

}